<template>
  <div>
    <button @click="del">-</button>
    <span>{{count}}</span>
    <button @click="add">+</button>

  </div>
</template>

<script>
export default {
  name: 'NumberBox',
  props:{
    count:{
      type:Number,
      required:true
    },
    type:{
      type:String,
      required:true
    }
  },
  methods:{
    del(){
      this.$emit("del")
    },
    add(){
      this.$emit("add")
    },

  }
}
</script>

<style lang="less" scoped>
span {
  display: inline-block;
  margin: 0 5px;
}
</style>